package com.neusoft.my12306.service.impl;

import com.neusoft.my12306.common.res.CommonResult;
import com.neusoft.my12306.entity.Sysinfo;
import com.neusoft.my12306.mapper.SysinfoMapper;
import com.neusoft.my12306.service.ISysinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 段静迪
 * @since 2023-07-10
 */
@Service
public class SysinfoServiceImpl extends ServiceImpl<SysinfoMapper, Sysinfo> implements ISysinfoService {
    @Autowired
    SysinfoMapper sysinfoMapper;

    @Override
    public CommonResult loadAllByList() {



        List<Sysinfo> lss =  sysinfoMapper.loadAllByList( );

        return new CommonResult(lss);
    }

    @Override
    public CommonResult loadByRid(String rid) {
        List< Sysinfo > lss = sysinfoMapper.loadByRid(  rid);
        return new CommonResult(lss);
    }
}
